package com.example.diancai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.data.relational.core.sql.In;

import java.rmi.dgc.Lease;

@Getter
@AllArgsConstructor
public enum Game2048LevelEnum {
    LV1("练气前期", 3),
    LV2("练气中期", 3),
    LV3("练气后期", 3),
    LV4("练气大圆满", 3),
    LV6("筑基前期", 3),
    LV7("筑基中期", 3),
    LV8("筑基后期", 3),
    LV9("筑基大圆满", 3),
    LV10("金丹前期", 5),
    LV11("金丹中期", 5),
    LV12("金丹后期", 5),
    LV13("金丹大圆满", 5),
    LV14("元婴前期", 5),
    LV15("元婴中期", 5),
    LV16("元婴后期", 5),
    LV17("元婴大圆满", 5),
    LV18("化神前期", 6),
    LV19("化神中期", 6),
    LV20("化神后期", 6),
    LV21("化神大圆满", 6),
    LV22("渡劫前期", 6),
    LV23("渡劫中期", 6),
    LV24("渡劫后期", 6),
    LV25("渡劫大圆满", 6),
    LV26("飞升前期", 9),
    LV27("飞升中期", 9),
    LV28("飞升后期", 9),
    LV29("飞升大圆满", 9),
    LV30("仙人", 10000);
    private String name;
    private Integer star;

    public Game2048LevelEnum nextLevel() {
        return values()[ordinal() + 1];
    }
    public Game2048LevelEnum beforeLevel() {
        return values()[ordinal() - 1];
    }


}
